﻿using ControleRepresentante.Logic.Models;
using ControleRepresentante.Logic.Repositories;
using NHibernate;

namespace ControleRepresentante.UnitTests.Mocks
{
    internal interface IMockRepositoryForRepresentante : IRepository
    {
        Representante Representante { get; }
    }

    internal class MockRepositoryForRepresentante : RepositoryBase, IMockRepositoryForRepresentante
    {
        public MockRepositoryForRepresentante(IRepositoryConfiguration repositoryConfiguration, ISession session)
            : base(repositoryConfiguration, session)
        {
        }

        public Representante Representante { get { return GetRepresentante(); } }
    }
}
